<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 300px;height: 300px;
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <!-- touchstart 触摸开始事件
    touchend    触摸结束事件
    touchmove   触摸移动事件 -->
    <div class="box"></div>
    <script>
        var box=document.querySelector('.box');
        box.ontouchstart=function(){
            console.log("触摸开始事件");
        }
        box.ontouchend=function(){
            console.log("触摸结束事件");
        }
        box.ontouchmove=function(){
            console.log("触摸移动事件");
        }
    </script>
</body>
</html>